package org.lee.pattern.strategy;

import java.math.BigDecimal;

/**
 * WechatPay
 * 微信支付
 *
 * @author dralee
 * @date 2022-03-09 10:53:36
 **/
//@Service("xxxx:WechatPay") // spring中可通过注入名称进行处理
public class WechatPay implements IPay {
    @Override
    public String pay(String orderId, BigDecimal price) {
        return "wechat pay the order ".concat(orderId).concat(" with ￥").concat(price.toPlainString());
    }
}
